import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import DataVVue3 from '@kjgl77/datav-vue3';
import * as echarts from 'echarts';
import { OfficeBuilding, Aim, Location, Monitor, Sunny, Cloudy, Lightning, FullScreen, VideoCamera } from '@element-plus/icons-vue'

const app = createApp(App)

app.use(router)
app.use(ElementPlus)
app.use(DataVVue3);
app.config.globalProperties.$echarts = echarts;

// 注册图标组件
app.component('OfficeBuilding', OfficeBuilding)
app.component('FullScreen', FullScreen)
app.component('Location', Location)
app.component('Monitor', Monitor)
app.component('Sunny', Sunny)
app.component('Cloudy', Cloudy)
app.component('Lightning', Lightning)
app.component('VideoCamera', VideoCamera)

app.mount('#app')
